module.exports = app => {
  const { router, controller } = app;
  router.post('/question/addWithAnswer', controller.questionController.addWithAnswer);
  router.post('/question/del', controller.questionController.del);
  router.post('/question/get', controller.questionController.get);
  router.post('/question/search', controller.questionController.search);
  router.post('/question/getAll', controller.questionController.getAll);
  router.post('/question/getByTag', controller.questionController.getByTag);
  router.post('/question/bindExam', controller.questionController.bindExam);
  router.post('/question/unbindExam', controller.questionController.unbindExam);
  router.post('/question/clearExamQuestion', controller.questionController.clearExamQuestion);
  router.post('/question/getQuestionByExam', controller.questionController.getQuestionByExam);
  router.post('/question/randomGetByTag', controller.questionController.randomGetByTag);
  router.post('/question/updateWithAnswer', controller.questionController.updateWithAnswer);
  router.post('/question/addImage', controller.questionController.addImg);
  router.post('/question/delImage', controller.questionController.delImg);
  router.post('/question/getImage', controller.questionController.getImg);
  router.post('/question/updateImage', controller.questionController.updateImg);
  router.post('/question/getAnswer', controller.questionController.getAnswer);
};